<?php

 /**
  * @package JooS
  * @subpackage Syntax_PHPackager
  */

  require_once "JooS/Syntax/Complex/Transition.php";

  class JooS_Syntax_PHPackager_Comment extends JooS_Syntax_Complex_Transition {
    /**
     * @return string
     */
    public function compile() {
      return parent::compile() === false ? false : "";
    }

    /**
     * @return JooS_Syntax_Complex_Concatenate
     */
    public function createRule() {
      $parser = $this->getParser();
      
      return $parser->createSyntax("Complex_Concatenate", array(
        $parser->createSyntax("Simple_Symbol", "/*"),
        $parser->createSyntax("Complex_Repetition",
          $parser->createSyntax("Except", $parser->createSyntax("Simple_Any"), $parser->createSyntax("Simple_Symbol", "*/"))
        ), 
        $parser->createSyntax("Simple_Symbol", "*/")
      ));
    }
  }
